package com.ny.demo;

public class liangjie {
    public static void main(String[] args) {
        dog dog=new dog();
        dog.age=5;
        dog.yanshe="黑色";
        dog.name="小黑";
        cat cat=new cat();
        cat.age=6;
        cat.yanshe="白色";
        cat.name="小白";
        dog.shengying();
        cat.shengying();
        System.out.println("age"+dog.getAgege());
        System.out.println("name"+dog.getName());
        System.out.println("yanshe"+dog.getYanshe());
        System.out.println("age"+dog.getAgege());
        System.out.println("name"+dog.getName());
        System.out.println("yanshe"+dog.getYanshe());
    }
}
